package com.yami.shop.consign.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.vo.ConsignRecordVO;
import com.yami.shop.bean.vo.ProdConfigVO;
import com.yami.shop.common.bean.PageDTO;
import com.yami.shop.common.bean.PageVO;
import com.yami.shop.consign.common.model.ConsignRecord;


public interface ConsignRecordService extends IService<ConsignRecord> {

    /**
     * 分页获取单个寄售记录
     * @param pageDTO
     * @param nftId
     * @return
     */
    PageVO<ConsignRecordVO> getRecordList(PageDTO pageDTO, String nftId);


    /**
     * 添加单个寄售记录
     * @param consignRecord
     */
    void saveRecord(ConsignRecord consignRecord);
    
    /**
     * 获取商品昨日均价、最新成交价
     * @param prodId
     * @return
     */
    ProdConfigVO getAvgLatestPriceByProdId(Integer prodId);

    /**
     * api添加单个寄售买入记录
     * @param consignRecordVO
     */
    Long saveRecordVo(ConsignRecordVO consignRecordVO);
    
}
